<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<script src = "../js/jquery-1.12.1.js" type = "text/javascript"></script>
	<script src = "../js/common.js" type = "text/javascript"></script>
	
	<link href="<%=request.getContextPath() %>/css/extremecomponents.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath() %>/css/global.css" rel="stylesheet" type="text/css" />
<title>Insert title here</title>
<script type="text/javascript">
$(function() {
   	//返回
   	$("#btnreturn").click(
       	function() {
       		window.location="right.jsp";
       	});
    //创建任务
    $("#btnadd").click(
    	function() {
    	    formPost(window.SearchState, '','analysisteacher?ActionType=teacher_modifyInit&FLAG=add', this);
    	});
});
</script>
</head>
<body>
<div id="current"><span style="padding-left:10px;">当前位置：教师管理</span></div>
<form name="SearchState"   method="post" >
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="search_table">
    	<tr class="search_title_tr">
    		<td colspan="1" class="search_title_L"><img src="../images/search_titleleft.jpg" width="84" height="30" align="top" /></td>
    		<td width="25%" class="search_title_R"><img src="../images/search-titleright.jpg" width="8" height="30" align="top" /></td>
    	</tr>
 		<tr>
 			<td width="50%" class="search_td2">相关操作：</td>
			<td width="50%" class="search_td1">
				<input id="btnadd" name="btnadd" type="button" class="btn_4" value="添加教师" />
				<input id="btnreturn" name="btnreturn" type="button" class="btn_2" value="返回" />
			</td>
		</tr>
	</table>
</form>
  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td class="search_shadow"></td>
    </tr>
    <tr>
        <td class="main_blank"></td>
    </tr>
</table>

<!--数据列表-START-->
<ec:table items="LISTINFO" var="row"
    action="analysisteacher?ActionType=teacher"
    view="html" 
    autoIncludeParameters="false"
     >
    
    <ec:exportXls fileName="teacher.xls" />
    <ec:row>
        <ec:column style="text-align:center;" width="7%" property="rowcount" cell="rowCount" title="序号" sortable="false"/>
        <ec:column property="teacherId" style="text-align:center;display:none;" headerStyle="display:none;" title="教师ID" />
        <ec:column property="teacherNumber" style="text-align:center;" title="工号" />
        <ec:column property="teacherName" style="text-align:center;" title="教师名" />
        <ec:column property="majorId" style="text-align:center;display:none;" headerStyle="display:none;" title="专业ID" />
        <ec:column property="majorNumber" style="text-align:center;" title="专业号" />
        <ec:column property="majorName" style="text-align:center;" title="专业名" />
        <ec:column property="EDIT" style="text-align:center;" title="操作" viewsDenied="xls">
        	<a href="#" onClick="formPost(window.SearchState,'','analysisteacher?ActionType=teacher_modifyInit&teacherId=<c:out value="${row.teacherId}"/>&FLAG=update',this);">修改</a> 
        	|<a href="#" onClick="formPost(window.SearchState,'','analysisteacher?ActionType=teacher_delete&teacherId=<c:out value="${row.teacherId}"/>',this);">删除</a> 
        </ec:column>
    </ec:row>
</ec:table>
</body>
</html>